package com.xc.service;

import com.github.pagehelper.PageInfo;
import com.xc.common.ServerResponse;
import com.xc.pojo.FundsApply;

import javax.servlet.http.HttpServletRequest;

/**
 * 权限
 */
public interface RoleService {

    /**
     * 新增
     */
    ServerResponse insertRole(String description, String name, String purview) throws Exception;

    /**
     * 更新
     */
    ServerResponse updateRole(String purview, Integer roleId, Integer status, String description, String name);

    ServerResponse deleteRole(Integer roleId);

    ServerResponse bandingRole(Integer userId, Integer roleId);

    ServerResponse listByRole(Integer roleId);

    ServerResponse roleList();

}
